#!/bin/bash

# Description: 格式化打印文字
# File: print_format.sh |Time: 2022-05-25 09:34

# 格式化输出字符串, 浮点数, 整数
printf "%-10s %-5.3f %03d\n" '张三' 35.34566 90
printf "%-10s %-5.3f %03d\n" '李四' 35.34566 90
printf "%-10s %-5.3f %03d\n" '王五' 35.34566 90
printf "%-10s %-5.3f %03d\n" 'bob' 35.34566 90



